﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ENG.TeachersDiary.Model
{
  partial class Mark
  {
    [System.ComponentModel.DataObjectField(false)]
    public string UserMarkInfo
    {
      get
      {
        string dateS;
        if (this.Date.HasValue)
          dateS = this.Date.Value.ToShortDateString();
        else
          dateS = "---";
        string ret =
          string.Format("{1}: {0} ({2})", this.MarkCode.Display, this.MarkGroup.Title, dateS);

        return ret;
      }
    }
  }
}
